Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derived Telemetry Prototype #7815

Open
wants to merge 68 commits into
base: master
Choose a base branch
from
Open

Derived Telemetry Prototype #7815

wants to merge 68 commits into from

Conversation

scottbell
Copy link
Contributor

@scottbell scottbell commented Aug 20, 2024

Describe your changes:

Closes #7823

Add a new object called "Derived Telemetry" that allows telemetry to be used in simple mathematical expressions.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this a notable change that will require a special callout in the release notes? For example, will this break compatibility with existing APIs or projects that consume these plugins?

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes?
  • Has this been smoke tested?
  • Have you associated this PR with a type: label? Note: this is not necessarily the same as the original issue.
  • Have you associated a milestone with this PR? Note: leave blank if unsure.
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Reviewer has tested changes by following the provided instructions?
  • Changes appear not to be breaking changes?
  • Appropriate automated tests included?
  • Code style and in-line documentation are appropriate?

@scottbell scottbell marked this pull request as ready for review September 6, 2024 08:48
@scottbell scottbell requested a review from ozyx September 6, 2024 08:55
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Sep 6, 2024
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Sep 6, 2024
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Sep 7, 2024
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Sep 7, 2024
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Sep 9, 2024
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Sep 9, 2024
}
}
// Increment suffix after exhausting the alphabet
suffix = (parseInt(suffix, 10) || 0) + 1;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why wasn't this covered by tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'd need 26 different parameters before slapping numbers on them. e.g., a,b,..z,a1,b2,c2,etc.

let valueToUse = rangeItems[0]?.key;
if (!valueToUse) {
// if no numeric data type, just use the first one
valueToUse = metaData.valueMetadatas[0]?.key;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SWGs have numeric data types, so we never fall through here.

@unlikelyzero unlikelyzero added the notable_change A change which should be noted in the changelog label Sep 10, 2024
<div :class="['c-comps__refs-controls c-cdef__controls', { disabled: !parameters?.length }]">
<label v-if="isEditing" class="c-toggle-switch">
<input type="checkbox" :checked="testDataApplied" @change="toggleTestData" />
<span class="c-toggle-switch__slider" aria-label="Apply Test Data"></span>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might not be necessary. You may be able to just use the vanilla label and modify your test to be:

page.getByRole('checkbox', { name : Apply Test Data }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tried this, but unfortunately didn't work

@unlikelyzero unlikelyzero added the type:feature Feature. Required intentional design label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notable_change A change which should be noted in the changelog type:enhancement type:feature Feature. Required intentional design
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Derived Telemetry Prototype
3 participants